package com.quectel.sys.module.sys.dto;

import com.quectel.constant.global.valid.ValidDivideGroupOne;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.groups.Default;
import java.io.Serializable;
import java.util.Date;

/**
 * @author rananxin
 */
@Data
public class SysTenantDto implements Serializable {

    private Long id;
    /**
     * 唯一code
     */
    @NotBlank(groups = {Default.class, ValidDivideGroupOne.class})
    @Length(min = 1, max = 20, groups = {Default.class, ValidDivideGroupOne.class})
    private String code;
    /**
     * 租户名称
     */
    @NotBlank(groups = {Default.class, ValidDivideGroupOne.class})
    @Length(min = 1, max = 80, groups = {Default.class, ValidDivideGroupOne.class})
    private String name;
    /**
     * 租户缩略logo链接
     */
    private String logo;
    /**
     * 租户logo链接
     */
    private String logoBig;

    /**
     * 路径地址
     */
    private String screenUrl;
    /**
     * 租户地址
     */
    private String address;
    /**
     * 租户描述
     */
    private String description;
    /**
     * 0停用1正常
     */
    private Byte status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date editTime;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 修改人
     */
    private String editor;

    private SysUserDto adminUser;

    private Integer sysUserCount;
}
